/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cz.muni.fi.j002.requirementengineeringmuni.entities;

import java.math.BigDecimal;

/**
 *
 * @author stefan
 */
public class Move {
        
    private Card card;

    private BigDecimal firstPlayerBet;
    private BigDecimal secondPlayerBet;

    private NextCardChoice firstPlayerChoice;
    private NextCardChoice secondPlayerChoice;

    public Move(BigDecimal firstPlayerBet, BigDecimal secondPlayerBet, NextCardChoice firstPlayerChoice, NextCardChoice secondPlayerChoice) {
        this.firstPlayerBet = firstPlayerBet;
        this.secondPlayerBet = secondPlayerBet;
        this.firstPlayerChoice = firstPlayerChoice;
        this.secondPlayerChoice = secondPlayerChoice;
    }

    public Card getCard() {
        return card;
    }
    public Move setCard(Card card) {
        if(this.card != null) {
            throw new IllegalStateException("A card can be set only once");
        }

        this.card = card;
        return this;
    }

    public BigDecimal getFirstPlayerBet() {
        return firstPlayerBet;
    }

    public BigDecimal getSecondPlayerBet() {
        return secondPlayerBet;
    }

    public NextCardChoice getFirstPlayerChoice() {
        return firstPlayerChoice;
    }

    public NextCardChoice getSecondPlayerChoice() {
        return secondPlayerChoice;
    }
    
    public enum NextCardChoice {
        HIGHER, LOWER;
    }
}
